﻿using DataTransfer.SDK;
using MiniFox.Platform.File.Models;
using Newtonsoft.Json;

namespace DataTransfer.Core.Models
{
    /// <summary>
    /// 导入批次模型
    /// </summary>
    public class ImportBatch
    {
        public ImportBatch()
        {
        }
        /// <summary>
        /// 批次ID
        /// </summary>
        public string BatchId { get; set; }
        /// <summary>
        /// 导入组集合，批量上传，一个文件对应一组
        /// </summary>
        [JsonProperty("groups")]
        public List<ImportGroup> Groups { get; set; } = [];
    }
    /// <summary>
    /// 导入组
    /// </summary>
    public class ImportGroup
    {
        /// <summary>
        /// 导入文件
        /// </summary>
        public FileData File { get; set; }
        /// <summary>
        /// 原始数据
        /// </summary>
        public object OriginalData { get; set; }

        /// <summary>
        /// 预加载汇总
        /// </summary>
        [JsonProperty("summary")]
        public SummaryModel[] OriginalSummary { get; set; } = [];
    }
    
}
